<%@page import="com.sbl.bajw.pc.model.PersonnelRecordModel"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.sbl.bajw.common.web.RequestUnit"%>
<%@page import="com.sbl.bajw.pc.model.CarStaticModel"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/prama.jsp" %>
<%
    PersonnelRecordModel model = (PersonnelRecordModel)request.getAttribute("model");
	List<String> pics = (List<String>)request.getAttribute("pics");
	if("0".equals(model.getIsLiveinthere())){
		model.setIsLiveinthere("否");
	}else if("1".equals(model.getIsLiveinthere())){
		model.setIsLiveinthere("是");
	}
	if("0".equals(model.getIsSeehimself())){
		model.setIsSeehimself("否");
	}else if("1".equals(model.getIsSeehimself())){
		model.setIsSeehimself("是");
	}
%>
<script type="text/javascript" src="${burl }/js/business/manager/PersonnelRecord/PersonnelRecordDetail.js"></script>
<div class="CommonPanel" id="msg_search_div">
	<input type="hidden" id="model_id" value="${model.personId }"/>
	<div style="float:left;">
		<div style="width:200px;height:200px;overflow: hidden;position: relative;">
			<div id="picContentDiv" style="width:<%=200*pics.size()%>px;position: absolute;left:0">
				<%
					for(int i = 0 ;i<pics.size();i++){
						String imgUrl = BaseUrl +"/"+ pics.get(i);
				%>
				<img width="200" style="float:left" src="<%=imgUrl%>"/>
				<%
					}
				%>
			</div>
		</div>
		<div>
			<button id="preBtn" style="cursor: pointer;">上一张</button>
			<button id="picBtn" style="cursor: pointer;">放大图片</button>
			<button id="nextBtn" style="cursor: pointer;">下一张</button>
		</div>
	</div>
	<table >
		<tr>
			<td class="label">姓名:</td>
			<td class="input" style="width: 150px;">
				${model.personName }
			</td>
			<td class="label">身份证号:</td>
			<td class="input" style="width: 150px;">
				${model.personCardcode }
			</td>
			<td class="label">手机号码:</td>
			<td class="input">
				${model.telnumber }
			</td>
		</tr>
		<tr>
			<td class="label">楼栋编码：</td>
			<td class="input">
				${model.buildingCode }
			</td>
			<td class="label">是否住在该处:</td>
			<td class="input">
				${model.isLiveinthere }
			</td>
			<td class="label">是否见到本人:</td>
			<td class="input">
				${model.isSeehimself }
			</td>
		</tr>
		<tr>
			<td class="label">采集人姓名:</td>
			<td class="input">
				${model.creatername }
			</td>
			<td class="label">采集地址:</td>
			<td class="input">
				${model.address }
			</td>
			<td class="label">采集时间:</td>
			<td class="input">
				${model.createtime }
			</td>
		</tr>
		<tr>
			<td class="label">居住人数：</td>
			<td class="input">
				${model.livenum }
			</td>
			<td class="label">备注：</td>
			<td class="input">
				${model.note }
			</td>
		</tr>
	</table>
	<input id="lat" type="hidden" value="${model.lat }"/>
	<input id="lon" type="hidden" value="${model.lon }"/>
	<input id=parentMenu type="hidden" value="/PersonnelRecord/List.do"/>
	<div style="text-align: center;">
		<button class="commonBtn" style="font-size: 20px" id="backBtn" onclick="window.close()">关闭</button>
	</div>
	<div style="clear: both;margin-bottom: 4px"></div>
	<div id="bmap" style="height: 270px;width: 100%;"></div>
</div>